import cssnano from "cssnano";
import postcss, { AcceptedPlugin } from "postcss";

export async function processcssminify(mathjaxstyleraw: string) {
    const plugins = [cssnano({})] as AcceptedPlugin[];
    //@ts-ignore
    return (
        //@ts-ignore
        (
            await postcss(plugins).process(mathjaxstyleraw, {
                from: undefined,
                to: undefined,
            })
        ).css
    );
}
